TO MERGE/code/init/chapter_start.R

# Clean workspace each chapter
rm(list = ls(all = TRUE))

options(scipen = 8, width=65)

# Any package that is required by the script below is given here:
inst_pkgs = load_pkgs =  c("ggplot2","astsa","ggfortify","zoo","gmwm","gridExtra")
inst_pkgs = inst_pkgs[!(inst_pkgs %in% installed.packages()[,"Package"])]
if(length(inst_pkgs)) install.packages(inst_pkgs)

# Dynamically load packages
pkgs_loaded = lapply(load_pkgs, require, character.only=T)
coatless/ITS documentation built on May 13, 2019, 8:45 p.m.